#include <stdio.h>
#include "../file.h"

int main() {
  struct Memory *m = init_memory();
  FILE *file = fopen("a.txt", "r");
  if (file == NULL) {
    printf("file cannot read\n");
    free_memory_all(m);
    return 0;
  }
  struct String str = read_line(m, file);
  printf("str: %d %s\n", str.length, str.s);
  struct String str2 = read_line(m, file);
  printf("str2: %d %s\n", str2.length, str2.s);
  free_memory_all(m);

  return 0;
}
